/*************************************************
 * 
 * Copyright by Bruno Eberhard
 * 
 * Created on 22.07.2005
 *
 *************************************************/
package fightplan.views;

import java.awt.BorderLayout;

import javax.swing.JFrame;

import com.jgoodies.binding.value.ValueHolder;

import fightplan.actions.MenuFactory;
import fightplan.algorithmen.ko.FighterLabel;
import fightplan.core.Resources;

@SuppressWarnings("serial")
public class ClientView extends JFrame {
	private ValueHolder sheet;

	public ClientView(String tatami, String person) {
		super("Auslosungsprogramm - Client");
		setIconImage(Resources.getImage("goblet_silver.16.png"));
		setLayout(new BorderLayout());

		// Die Darstellung auf den ClientModus schalten.
		FighterLabel.setClientMode(true);

		sheet = new ValueHolder();

		add(MenuFactory.createMenu(this), BorderLayout.NORTH);

		add(new ClientPanel(sheet), BorderLayout.CENTER);
	}

	public ValueHolder getSheet() {
		return sheet;
	}

}
